import pytest

def test_case(cmdopt):
    print("自定义参数的值：", cmdopt)

if __name__ == '__main__':
    pytest.main(['-s', 'mengfeiyuan.py', '--cmdopt=abcde'])